import LoginLogService from '../service/login-log-service';
import * as Koa from 'koa';

class LoginLogController {
  private service: LoginLogService = new LoginLogService();

  // 添加
  addLoginLog = async (ctx: Koa.Context) => {
    await this.service.addLoginLog(ctx);
  };

  // 删除
  delLoginLog = async (ctx: Koa.Context) => {
    await this.service.delLoginLog(ctx);
  };

  // 修改
  updateLoginLog = async (ctx: Koa.Context) => {
    await this.service.updateLoginLog(ctx);
  };

  // 查询
  searchLoginLog = async (ctx: Koa.Context) => {
    await this.service.searchLoginLog(ctx);
  };
}

export default new LoginLogController();
